package cn.kgc.gmall.service;

import cn.kgc.gmall.mapper.PublisherMapper;
import cn.kgc.gmall.pojo.ProductStats;
import cn.kgc.gmall.pojo.ProvinceStats;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.util.pattern.PathPattern;

import java.math.BigDecimal;
import java.util.List;

@Service
public class PublisherServiceImpl implements PublisherService {

    @Autowired
    private PublisherMapper publisherMapper;

    @Override
    public BigDecimal getGMV(Integer date) {
        return publisherMapper.getGMV(date);
    }

    @Override
    public List<ProductStats> getTrademark(Integer date, Integer limit) {
        return publisherMapper.getTrademark(date,limit);
    }

    @Override
    public List<ProductStats> getSPU(Integer date, Integer limit) {
        return publisherMapper.getSPU(date,limit);
    }

    @Override
    public List<ProductStats> getCategory3(Integer date) {
        return publisherMapper.getCategory3(date);
    }

    @Override
    public List<ProvinceStats> getProvince(Integer date) {
        return publisherMapper.getProvince(date);
    }
}
